<head>
    <meta charset="UTF-8">
    <title>相册</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- 通过th:each循环生成多个figure标签，每个标签对应一张图-->
<figure class="sample" th:each="image:${images}">
    <img th:src="${image.url}" alt="sample1" />
    <figcaption>
        <div>
            <h2 th:text="${image.name}"></h2>
        </div>
    </figcaption>
    <a th:href="image.url"></a>
</figure>
</body>